﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DARE
{
#if !WINDOWS_PHONE
    public class CVideoPanelData : CWidgetData
    {
        public bool isLooped;
        public string videoToPlay;
        public float volume;

        public override void FillDataStructure(CWidget wid)
        {
            CVideoPanel w = wid as CVideoPanel;
            base.FillDataStructure(wid);
            isLooped = w.IsLooped;
            videoToPlay = w.VideoToPlay;
            volume = w.Volume;
        }

        public override void FillFromDataStructure(ref CWidget wid, CHUDSystem hud)
        {
            base.FillFromDataStructure(ref wid, hud);
            (wid as CVideoPanel).IsLooped = isLooped;
            (wid as CVideoPanel).Volume = volume;
            (wid as CVideoPanel).VideoToPlay = videoToPlay;
        }
    }
#endif
}
